home *** CD-ROM | disk | FTP | other *** search
/ Champak 119 / (Vol 119) Nov 09 2010.iso / Games / snack_attack.swf / scripts / DefineButton2_336 / BUTTONCONDACTION on(keyPress Left).as next >
Text File  |  2010-11-09  |  568b  |  23 lines

  1. on(keyPress "<Left>"){
  2.    temptar = eval("/:currtar");
  3.    if(eval("/:currtar") == eval("/:currplace"))
  4.    {
  5.       set("/:currtar",eval("/:currtar") - "1");
  6.    }
  7.    else if(eval("/:currplace") < eval("/:currtar"))
  8.    {
  9.       temp = eval("/:currtar");
  10.       set("/:currtar",eval("/:currplace"));
  11.       set("/:currplace",temp);
  12.    }
  13.    if(eval("/:currtar") < "1")
  14.    {
  15.       set("/:currtar","1");
  16.    }
  17.    set("/:tarx",eval("/:tar" add eval("/:currtar")));
  18.    if(temptar != eval("/:currtar"))
  19.    {
  20.       set("/:force",eval("/:force") + "12");
  21.    }
  22. }
  23.